<template>
  <div>
    <ul class="list-group">
      <li class="list-group-item"  v-for="(item) in todos" :key="item.id">
        <Item :todo="item" :del-todo="delTodo" />
      </li>
    </ul>
    
  </div>
</template>

<script>
import Item from './Item.vue'
export default {
  props: {
    todos: Array,
    delTodo: Function
  },
  setup () {
    

    return {}
  },
  components: {
    Item
  }
}
</script>

<style lang="scss" scoped>
.list-group {
  margin-top: 10px
}
</style>